$OpenBSD: patch-avidemux_ADM_videoFilter_ADM_vidFields_cpp,v 1.2 2012/08/20 11:51:00 pascal Exp $
--- avidemux/ADM_videoFilter/ADM_vidFields.cpp.orig	Fri Aug 10 18:49:40 2012
+++ avidemux/ADM_videoFilter/ADM_vidFields.cpp	Fri Aug 10 18:50:11 2012
@@ -118,7 +118,8 @@ uint8_t ADMVideoFields::hasMotion(ADMImage *image)
            e2=_motionmask2+w; 	
   //___________________ C version of motion detection ________________________
        // other line
-#if (defined( ARCH_X86)  || defined(ARCH_X86_64)) && defined(ASM_DEINT)
+#if (defined( ARCH_X86)  || defined(ARCH_X86_64)) && defined(ASM_DEINT) && \
+	!defined(__PIC__)
        if(CpuCaps::hasMMX())  
       	hasMotion_MMX(p,c,n,e,e2);
        else
@@ -200,7 +201,8 @@ uint8_t ADMVideoFields::doBlend(ADMImage *src,ADMImage
 		n++;
 		c++;
 	}
-#if (defined( ARCH_X86)  || defined(ARCH_X86_64)) && defined(ASM_BLEND)
+#if (defined( ARCH_X86)  || defined(ARCH_X86_64)) && defined(ASM_BLEND) && \
+	!defined(__PIC__)
        if(CpuCaps::hasMMX())               
               blend_MMX(p,c,n,e2,f);
         else
